-- GENERATED SPELL FOR [Heb'Jin] --


function spell0_28636(pUnit, Event) --@Ground Smash,Self--
pUnit:FullCastSpellOnTarget(12734,pUnit)
pUnit:RegisterEvent('Sorts_28636', 2346, 1)
end

function spell1_28636(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28636', 5277, 1)
end

function spell2_28636(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_28636', 10293, 1)
end

function Sorts_28636(pUnit, Event)
local choix_sorts_28636 = math.random(0, 2)
if choix_sorts_28636 == 0 then
pUnit:RegisterEvent('spell0_28636', 1, 1)
end
if choix_sorts_28636 == 1 then
pUnit:RegisterEvent('spell1_28636', 1, 1)
end
if choix_sorts_28636 == 2 then
pUnit:RegisterEvent('spell2_28636', 1, 1)
end
end

function mob28636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28636', math.random(1500, 3000), 1)
end

function mob28636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28636, 1, 'mob28636_Action')
RegisterUnitEvent(28636, 2, 'mob28636_Leave')
RegisterUnitEvent(28636, 3, 'mob28636_Kill')
RegisterUnitEvent(28636, 4, 'mob28636_Die')
